home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v10n18.arc
/
CHANGEJ.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-10-30
|
724b
|
62 lines
[[CHANGEJ.BAT]]
@echo off
REM Calling is done via:
REM CALL CHANGEJ 0 U (increase)
REM CALL CHANGEJ 9 U (decrease)
REM Variables H, T, U must be
REM initialized to single digits.
set X=%2
if %X%==U set O=%U%
if %X%==T set O=%T%
if %X%==H set O=%H%
set S=P
if %1==9 set S=M
goto %S%%O%
:P0
:M2
set V=1
goto Y
:P1
:M3
set V=2
goto Y
:P2
:M4
set V=3
goto Y
:P3
:M5
set V=4
goto Y
:P4
:M6
set V=5
goto Y
:P5
:M7
set V=6
goto Y
:P6
:M8
set V=7
goto Y
:P7
:M9
set V=8
goto Y
:P8
:M0
set V=9
goto Y
:P9
:M1
set V=0
:Y
set %X%=%V%
if "%X%"=="U" if %U%==%1 CALL changej %1 T
if "%X%"=="T" if %T%==%1 CALL changej %1 H
set J=%H%%T%%U%
for %%v in (N O S X) DO set %%v=